package panda.client.services;

import panda.client.engine.MagicCard;
import panda.client.engine.ServerModel;
import panda.client.enumerations.ClientID;
import panda.client.enumerations.MagicSet;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface DataServiceAsync {
	public void getCardViaExactID(String name, MagicSet set, int id, AsyncCallback<MagicCard> callback);
	// public void getCardViaExactName(String name, AsyncCallback<MagicCard> callback);
	// public void getCardViaRegexName(String pattern, AsyncCallback<List<MagicCard>> callback);
	// public void getCardViaRegexText(String pattern, AsyncCallback<List<MagicCard>> callback);

	public void getNewServerID(AsyncCallback<Object> callback);

	public void registerClient(String placeholder, AsyncCallback<Object> callback);
	public void getModel(ClientID sessionID, AsyncCallback<ServerModel> callback);
	public void updateModel(ClientID sessionID, ServerModel model, AsyncCallback<Object> callback);
}